package cc.magicjson.scenario.implement.module.jdbc.template.druid.filter;

import com.alibaba.druid.proxy.jdbc.StatementProxy;

public class StatementHolder {
    private static final ThreadLocal<StatementProxy> STATEMENT_THREAD_LOCAL = new ThreadLocal<>();

    public static void set(StatementProxy statement) {
        STATEMENT_THREAD_LOCAL.set(statement);
    }

    public static StatementProxy get() {
        return STATEMENT_THREAD_LOCAL.get();
    }

    public static void remove() {
        STATEMENT_THREAD_LOCAL.remove();
    }
} 